.class public Lcom/hyphenate/exceptions/EMExceptionUtils;
.super Ljava/lang/Object;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static fromExceptionToErrorCode(Ljava/lang/Exception;)I
    .locals 3

    const/16 v0, 0x1f7

    const/4 v1, 0x1

    instance-of v2, p0, Ljava/security/NoSuchAlgorithmException;

    if-eqz v2, :cond_1

    :cond_0
    :goto_0
    return v0

    :cond_1
    instance-of v2, p0, Ljava/security/UnrecoverableKeyException;

    if-nez v2, :cond_0

    instance-of v2, p0, Ljava/security/KeyManagementException;

    if-nez v2, :cond_0

    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v2, "User removed"

    invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/16 v0, 0xcf

    goto :goto_0

    :cond_2
    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v2, "conflict"

    invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    const/16 v0, 0xce

    goto :goto_0

    :cond_3
    move v0, v1

    goto :goto_0
.end method
